package com.ruoyi.common.constant.training;

public class CurriculumConstants {

    public enum TopicTypeEnum {

        Single("单选题", "Single"),
        Multi("多选题", "Multi"),
        Judge("判断题", "Judge"),
        ;

        private final String typeName;
        private final String typeValue;

        TopicTypeEnum(String typeName, String typeValue) {
            this.typeName = typeName;
            this.typeValue = typeValue;
        }

        public String getTypeName() {
            return this.typeName;
        }

        public String getTypeValue() {
            return this.typeValue;
        }

        public static String getTypeNameByValue(String typeValue) {
            for (TopicTypeEnum purchaseTypeEnum : TopicTypeEnum.values()) {
                if (purchaseTypeEnum.getTypeValue().equals(typeValue)) {
                    return purchaseTypeEnum.getTypeName();
                }
            }
            return null;
        }
    }


}
